package hu.mapro.core;

import static playn.core.PlayN.graphics;
import playn.core.Game;
import playn.core.ImmediateLayer.Renderer;
import playn.core.Surface;

public class Roller extends Game.Default {

  public Roller() {
    super(33); // call update every 33ms (30 times per second)
  }

  @Override
  public void init() {
//    // create and add background image layer
//    Image bgImage = assets().getImage("images/bg.png");
//    ImageLayer bgLayer = graphics().createImageLayer(bgImage);
//    graphics().rootLayer().add(bgLayer);
	  
	  graphics().createImmediateLayer(new Renderer() {
		@Override
		public void render(Surface surface) {
			
			
		}
	});
  }

  @Override
  public void update(int delta) {
  }

  @Override
  public void paint(float alpha) {
    // the background automatically paints itself, so no need to do anything here!
  }
}
